package com.qiangesoft.tenantid.mapper;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qiangesoft.tenantid.entity.SysDept;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 部门信息 Mapper 接口
 * </p>
 *
 * @author qiangesoft
 * @since 2024-04-11
 */
public interface SysDeptMapper extends BaseMapper<SysDept> {

    /**
     * 不进行租户过滤
     *
     * @param parentId
     * @return
     */
    @SqlParser(filter = true)
    List<SysDept> listByParam(@Param("parentId") Long parentId);

}
